//package com.example.tests;

import com.thoughtworks.selenium.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.regex.Pattern;

public class Dealer_DealerEventManager_TextVerify extends SeleneseTestCase {
	@Before
	public void setUp() throws Exception {
		selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://www.gfwfn.com/DealerLogin.php");
		selenium.start();
	}

	@Test
	public void testUntitled() throws Exception {
		selenium.open("/DealerLogin.php");
		selenium.type("id=txtUsername", "99999");
		selenium.type("id=txtPassword", "Ldldvht9");
		selenium.click("name=submit");
		selenium.waitForPageToLoad("30000");
		verifyTrue(selenium.isElementPresent("id=header"));
		verifyTrue(selenium.isElementPresent("id=header"));
		verifyTrue(selenium.isElementPresent("css=img[alt=\"Check out the all-new 2013 Fusion\"]"));
		verifyTrue(selenium.isElementPresent("id=header"));
		verifyTrue(selenium.isElementPresent("css=img[alt=\"Click for Live Chat\"]"));
		verifyTrue(selenium.isElementPresent("css=img[alt=\"Home\"]"));
		verifyTrue(selenium.isElementPresent("css=img[alt=\"Tools\"]"));
		verifyTrue(selenium.isElementPresent("css=img[alt=\"POP Kit\"]"));
		verifyTrue(selenium.isElementPresent("css=img[alt=\"RSVPs\"]"));
		verifyTrue(selenium.isTextPresent("exact:Have Questions? Call 1-800-757-5754 \nAmerican Idol ®/© 19 TV Ltd. and FremantleMedia North America. 2013 All Rights Reserved. www.americanidol.com\nCharitable donations are the sole responsibility of Ford, not American Idol® or related parties."));
		verifyTrue(selenium.isElementPresent("css=p.alignLeft"));
		verifyTrue(selenium.isElementPresent("css=span.aiDisclaimer"));
		verifyTrue(selenium.isTextPresent("American Idol ®/© 19 TV Ltd. and FremantleMedia North America. 2013 All Rights Reserved. www.americanidol.com\nCharitable donations are the sole responsibility of Ford, not American Idol® or related parties."));
		verifyTrue(selenium.isElementPresent("link=www.americanidol.com"));
		verifyTrue(selenium.isTextPresent("www.americanidol.com"));
		verifyTrue(selenium.isTextPresent("Official Rules"));
		verifyTrue(selenium.isElementPresent("link=Official Rules"));
		verifyTrue(selenium.isElementPresent("link=Privacy Statement"));
		verifyTrue(selenium.isTextPresent("Privacy Statement"));
		verifyTrue(selenium.isTextPresent("CA Privacy Statement"));
		verifyTrue(selenium.isElementPresent("link=CA Privacy Statement"));
		verifyTrue(selenium.isTextPresent("Welcome to the Go Further with Ford Night Event Manager Tool Site. Here you'll find everything you need to create a successful event starring the all-new 2013 Fusion."));
		verifyTrue(selenium.isElementPresent("css=p.topadjust"));
		verifyTrue(selenium.isElementPresent("//div[@id='content']/div[2]/p[3]"));
		verifyTrue(selenium.isTextPresent("Click on \"Tools\" to the left to access key promotional materials, FAQs, an Event Checklist and information regarding Test Your Judging Skills with American Idol® Tryouts that will be offered to consumers at your Dealership on event night."));
		verifyTrue(selenium.isTextPresent("Click on \"POP KIT\" to the left to order your Go Further with Ford Night POP event materials. These materials will help you to promote and execute the event effectively at your Dealership."));
		verifyTrue(selenium.isElementPresent("//div[@id='content']/div[2]/p[5]"));
		verifyTrue(selenium.isElementPresent("css=strong"));
		verifyTrue(selenium.isElementPresent("//div[@id='content']/div[2]/p[5]/strong"));
		verifyTrue(selenium.isElementPresent("//div[@id='content']/div[2]/p[7]"));
		verifyTrue(selenium.isTextPresent("Click on \"RSVPs\" to get a real-time snapshot of how many consumers have pre-registered for your event, including their names and contact information."));
		verifyTrue(selenium.isTextPresent("Welcome to the Go Further with Ford Night Event Manager Tool Site. Here you'll find everything you need to create a successful event starring the all-new 2013 Fusion."));
		verifyTrue(selenium.isElementPresent("css=strong"));
		verifyTrue(selenium.isTextPresent("Test Your Judging Skills with American Idol® Tryouts"));
		verifyTrue(selenium.isTextPresent("Click on \"POP KIT\" to the left to order your Go Further with Ford Night POP event materials. These materials will help you to promote and execute the event effectively at your Dealership."));
		verifyTrue(selenium.isTextPresent("Click on \"Tools\" to the left to access key promotional materials, FAQs, an Event Checklist and information regarding Test Your Judging Skills with American Idol® Tryouts that will be offered to consumers at your Dealership on event night."));
		verifyTrue(selenium.isTextPresent("Click on \"RSVPs\" to get a real-time snapshot of how many consumers have pre-registered for your event, including their names and contact information."));
		verifyTrue(selenium.isElementPresent("//div[@id='content']/div[2]/p[5]/strong")
	
	
	
	}

	

	@After
	public void tearDown() throws Exception {
		selenium.stop();
	}
}
